package com.bawei.es.service;

import com.bawei.common.core.domain.R;
import com.bawei.system.domain.IndexCreateRequest;

import java.util.List;
import java.util.Map;

public interface EsIndexService {



    void indexRequest(IndexCreateRequest request);

    R<Boolean> indexExit(String indexName);

    R<Boolean> indexDelete(String indexName);

    R<Boolean> indexCreateWithMapping(String indexName, String indexMapping);

    R<Map> indexGetMapping(String indexName);

    Boolean exits(String indexName);

    R<Boolean> indexCreate(IndexCreateRequest request);

    List<String> selectAllIndex();

}
